package gov.nhso.prov.acc.servlets;

import gov.nhso.prov.acc.core.ConfigBundle;
import gov.nhso.prov.acc.sap.JCOServer32;

import javax.servlet.ServletConfig;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;

/**
 * Servlet implementation class StartSapServer
 */
public class StartSapServer extends HttpServlet {
	private static final long serialVersionUID = 1L;
       
    /**
     * @see HttpServlet#HttpServlet()
     */
    public StartSapServer() {
        super();
        // TODO Auto-generated constructor stub
    }

	/**
	 * @see Servlet#init(ServletConfig)
	 */
	public void init(ServletConfig config) throws ServletException {
		if (ConfigBundle.getValue("SAP_SERVER").equals("Y")) {
			JCOServer32 sap = new JCOServer32();
			sap.startServers();
		}
	}

}
